Skip to content

ci: Optimize CI workflows for linting and release jobs#185

Merged
askpt merged 2 commits intomainfrom
askpt/fix-ci
Mar 6, 2026
Merged

ci: Optimize CI workflows for linting and release jobs#185
askpt merged 2 commits intomainfrom
askpt/fix-ci

Conversation

@askpt
Copy link
Owner

@askpt askpt commented Mar 6, 2026

Enhance CI efficiency by skipping redundant linting on non-Linux runners and introducing a dedicated test script for VSCode. Additionally, set timeout limits for release workflow jobs to prevent indefinite hangs during transient failures.

closes #184
closes #183

github-actions[bot] and others added 2 commits March 6, 2026 14:09
Lint is OS-agnostic and already runs on Linux via test:coverage.
Add test:vscode script and use it on non-Linux to run only compile+test,
avoiding duplicate lint execution on macOS (10x cost) and Windows (2x cost).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add timeout-minutes to both jobs in the release workflow to prevent
them from hanging indefinitely on transient failures:
- release-please job: 5 minutes (typically completes in 1-2 min)
- release job: 20 minutes (includes npm ci, tests, and vsce publish)

This ensures CI minutes are not wasted if a network issue or other
transient problem causes a job to stall.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 6, 2026 14:10
@askpt askpt changed the title Optimize CI workflows for linting and release jobs ci: Optimize CI workflows for linting and release jobs Mar 6, 2026
@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.17%. Comparing base (8eafd5a) to head (2a98933).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #185   +/-   ##
=======================================
  Coverage   59.17%   59.17%           
=======================================
  Files           6        6           
  Lines        1984     1984           
  Branches      143      143           
=======================================
  Hits         1174     1174           
  Misses        810      810           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves GitHub Actions efficiency for the VS Code extension by avoiding redundant linting on non-Linux CI runners, adding a dedicated VS Code test script, and preventing release workflows from hanging indefinitely via job timeouts.

Changes:

  • Add test:vscode npm script as a lint-free entry point for VS Code extension tests.
  • Update CI workflow to run full test:coverage only on Linux; on macOS/Windows run compile + VS Code tests without lint.
  • Add job-level timeouts to the release workflows.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
package.json Adds test:vscode script to decouple VS Code tests from pretest linting.
.github/workflows/ci.yml Runs coverage/lint only on Linux; runs compile + VS Code tests on non-Linux runners.
.github/workflows/release.yml Adds job timeouts to avoid indefinite hangs during release/release-please jobs.

@askpt askpt merged commit d3d4a1c into main Mar 6, 2026
32 of 33 checks passed
@askpt askpt deleted the askpt/fix-ci branch March 6, 2026 14:16
@github-actions github-actions bot mentioned this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ci-coach] ci: skip redundant lint on macOS and Windows runners [ci-coach] ci: add timeout-minutes to release workflow jobs

2 participants